package QuanLyNhanSu;

import java.awt.Color;
import java.awt.Font;

import javax.swing.*;

public class SetControl {
	
	public void setFont(JLabel jlb){
		jlb.setForeground(new Color(0, 128, 128));
		jlb.setFont(new Font("Tahoma", Font.PLAIN, 16));
	}
	
	public void setFont(JTextField jtf){
		jtf.setForeground(new Color(0, 128, 128));
		jtf.setFont(new Font("Tahoma", Font.PLAIN, 16));
	}
	
	public void setFont(JPasswordField jtf){
		jtf.setForeground(new Color(0, 128, 128));
		jtf.setFont(new Font("Tahoma", Font.PLAIN, 16));
	}
	
	public void setFont(JButton jbt){
		jbt.setForeground(new Color(0, 128, 128));
		jbt.setFont(new Font("Tahoma", Font.BOLD, 14));
	}
	
	public void setFont(JRadioButton jrb){
		jrb.setForeground(new Color(0, 128, 128));
		jrb.setFont(new Font("Tahoma", Font.PLAIN, 16));
	}
	
	public void setFont(JTable jtb){
		jtb.setForeground(new Color(0, 0, 128));
		jtb.setFont(new Font("Tahoma", Font.PLAIN, 16));
		jtb.setBackground(new Color(172, 225, 175));
		
	}
	
	public void setFont(JScrollPane jsp){
		jsp.setForeground(new Color(0, 0, 128));
		jsp.setFont(new Font("Tahoma", Font.PLAIN, 16));
		jsp.setBackground(new Color(172, 225, 175));
		
	}
}
